#include "unity.h"
#include "unity_internals.h"
#include "stdint.h"
 
void setUp(void)
{
}

void tearDown(void)
{
}
 
int fault_test_by_div0(int y)
{
	int x, z;

	if(y == 0)
		 return -1;

	x = 10;
	z = x / y;
	return z;
}

void test_func(void)
{
	TEST_ASSERT_EQUAL_INT(-1, fault_test_by_div0(0));
	TEST_ASSERT_EQUAL_INT(5, fault_test_by_div0(2));
}
 
void test_unity(void)
{
	UNITY_BEGIN();
	RUN_TEST(test_func);
	UNITY_END();
}
